<ion-view view-title="{{title}}" class="nineActivity">
	<!--一定要手动加导航栏-->
	<ion-nav-bar>
		<ion-nav-back-button>
		</ion-nav-back-button>
	</ion-nav-bar>
	<!--描述：滑动块-->
	<ion-content scroll="false" class="bg">
		<!--轮播图-->
		<ion-slide-box does-continue="true" auto-play="true" delegate-handle="advs-handle" id="advsBox">
			<ion-slide ng-repeat="img in banners">
				<img src="{{img.image_id}}" width="100%" >
			</ion-slide>
		</ion-slide-box>
		
		<div class="row top">
			<div class="col" on-tap="activeSlide(0)" ng-class="selectIndex==0?'top-activated':''">
				进行中
			</div>
			<div class="col" on-tap="activeSlide(1)" ng-class="selectIndex==1?'top-activated':''">
				即将开始
			</div>
		</div>
		
		<ion-slide-box delegate-handle="tab-handle" on-touch="onTouch()" on-release="onRelease()" draw-slide="false" on-slide-changed="slideChanged(index)" active-slide="tabIndex" show-pager="false">
			<!--进行中-->
			<ion-slide>
				<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
					<!--描述：下拉刷新-->
					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
						
					<!--没有数据firstHide-->
					<div class="noData" ng-if="datasArr[0].act==null||datasArr[0].act.length==0">
						<img src="./img/guilin/other/icon_noComment@2x.png" />
						<div class="tip">没有进行中的{{title}}活动哦！</div>
					</div>	
					
					<div class="list bigList">
						<li class="item mainItem" ng-repeat="act in datasArr[0].act" on-tap="onshow_detail(act.act_id,act.goods_id,act.product_id,act.as_id)">
							<img src="{{act.image[0].image||noImg}}" class="goodsImg" />
							<div class="time">{{act.formate_time}}</div>
							<div class="nameDiv ellipsis">
								{{act.act_name}}
								<div class="storeName" on-tap="onshow_first(act.store_id,$event)">
									<img src="./img/guilin/common/icon_shop@2x.png" />
									{{act.store_name}}
								</div>
							</div>
						</li>
					</div>

					<!--描述：当用户到达页脚或页脚附近时-->
					<ion-infinite-scroll ng-if="!isLoad&&datasArr[0].page.tPage>datasArr[0].page.cPage" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
				</ion-scroll>
			</ion-slide>

			<!--即将开始-->
			<ion-slide>
				<ion-scroll direction="y" ng-style="myObj" lazy-scroll>
					<!--描述：下拉刷新-->
					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
					
					<!--没有数据firstHide-->
					<div class="noData" ng-if="datasArr[1].act==null||datasArr[1].act.length==0">
						<img src="./img/guilin/other/icon_noComment@2x.png" />
						<div class="tip">没有即将开始的{{title}}活动哦！</div>
					</div>

					<div class="list bigList">
						<li class="item mainItem" ng-repeat="act in datasArr[1].act" on-tap="onshow_detail(act.act_id,act.goods_id,act.product_id,act.as_id)">
							<img src="{{act.image[0].image||noImg}}" class="goodsImg" />
							<div class="time">{{act.formate_time}}</div>
							<div class="nameDiv ellipsis">
								{{act.act_name}}
								<div class="storeName" on-tap="onshow_first(act.store_id,$event)">
									<img src="./img/guilin/common/icon_shop@2x.png" />
									{{act.store_name}}
								</div>
							</div>
						</li>
					</div>


					<!--描述：当用户到达页脚或页脚附近时-->
					<ion-infinite-scroll ng-if="!isLoad&&datasArr[1].page.tPage>datasArr[1].page.cPage" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
				</ion-scroll>
			</ion-slide>

		</ion-slide-box>
	</ion-content>
</ion-view>